#sql("oracle_small_create")
     (
        conflict_id VARCHAR2(50) primary key,
        ROW_ID VARCHAR2(50),
        PAR_ROW_ID VARCHAR2(50),
        CREATED DATE default sysdate,
        CREATED_BY VARCHAR2(50),
        LAST_UPD DATE default sysdate,
        LAST_UPD_BY VARCHAR2(50),
        MODIFICATION_NUM NUMBER default 0,
 FORM_ID     	varchar(100) null,
 HASH_VAL     	varchar(100) null,
 AUDIT_STATE    varchar(100) null,
        AUDIT_DATE      datetime null,
        AUDIT_BY        varchar(100) null,
  AUDIT_BY_NAME        varchar(100) null,
LIFENODE_ID    varchar(100) null,
        EIM_SOURCE VARCHAR2(50) default '00000000000000000000',
        ATTRIB_01 VARCHAR2(255),
        ATTRIB_02 VARCHAR2(255),
        ATTRIB_03 VARCHAR2(255),
        ATTRIB_04 VARCHAR2(255),
        ATTRIB_05 VARCHAR2(255),
        ATTRIB_06 VARCHAR2(255),
        ATTRIB_07 VARCHAR2(255),
        ATTRIB_08 VARCHAR2(255),
        ATTRIB_09 VARCHAR2(255),
        ATTRIB_10 VARCHAR2(255),
        ATTRIB_11 VARCHAR2(255),
        ATTRIB_12 VARCHAR2(255),
        ATTRIB_13 VARCHAR2(255),
        ATTRIB_14 DATE,
        ATTRIB_15 CHAR(1),
        ATTRIB_16 CHAR(1),
        ATTRIB_17 NUMBER,
        ATTRIB_18 NUMBER,
        ATTRIB_19 CLOB,
        ATTRIB_20 VARCHAR2(2000)
       )
#end
#sql("oracle_small_insert")
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_01','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_02','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_03','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_04','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_05','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_06','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_07','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_08','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_09','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_10','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_11','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_12','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_13','VARCHAR2(255)','普通字符串','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_14','DATE','日期型','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_15','CHAR(1)','单字符型','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_16','CHAR(1)','单字符型','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_17','NUMBER','数值型','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_18','NUMBER','数值型','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_19','CLOB','富文本型','0')//
        insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_20','VARCHAR2(2000)','文本型','0')
#end
#sql("oracle_middle_create")
       (
	     conflict_id VARCHAR2(50) primary key,
	     ROW_ID VARCHAR2(50),
	     PAR_ROW_ID VARCHAR2(50),
	     CREATED DATE default sysdate,
	     CREATED_BY VARCHAR2(50),
	     LAST_UPD DATE default sysdate,
	     LAST_UPD_BY VARCHAR2(50),
	     MODIFICATION_NUM NUMBER default 0,
 FORM_ID     	varchar(100) null,
 HASH_VAL     	varchar(100) null,
 AUDIT_STATE    varchar(100) null,
        AUDIT_DATE      datetime null,
        AUDIT_BY        varchar(100) null,
  AUDIT_BY_NAME        varchar(100) null,
LIFENODE_ID    varchar(100) null,
	     EIM_SOURCE VARCHAR2(60) default '000000000000000000000000000000000000000000000000000000000000',
	     ATTRIB_01 VARCHAR2(255),
	     ATTRIB_02 VARCHAR2(255),
	     ATTRIB_03 VARCHAR2(255),
	     ATTRIB_04 VARCHAR2(255),
	     ATTRIB_05 VARCHAR2(255),
	     ATTRIB_06 VARCHAR2(255),
	     ATTRIB_07 VARCHAR2(255),
	     ATTRIB_08 VARCHAR2(255),
	     ATTRIB_09 VARCHAR2(255),
	     ATTRIB_10 VARCHAR2(255),
	     ATTRIB_11 VARCHAR2(255),
	     ATTRIB_12 VARCHAR2(255),
	     ATTRIB_13 VARCHAR2(255),
	     ATTRIB_14 DATE,
	     ATTRIB_15 CHAR(1),
	     ATTRIB_16 CHAR(1),
	     ATTRIB_17 NUMBER,
	     ATTRIB_18 NUMBER,
	     ATTRIB_19 CLOB,
	     ATTRIB_20 VARCHAR2(2000),
	     ATTRIB_21 NUMBER,
	     ATTRIB_22 NUMBER,
	     ATTRIB_23 NUMBER,
	     ATTRIB_24 NUMBER,
	     ATTRIB_25 NUMBER,
	     ATTRIB_26 DATE,
	     ATTRIB_27 DATE,
	     ATTRIB_28 DATE,
	     ATTRIB_29 DATE,
	     ATTRIB_30 DATE,
	     ATTRIB_31 VARCHAR2(255),
	     ATTRIB_32 VARCHAR2(255),
	     ATTRIB_33 VARCHAR2(255),
	     ATTRIB_34 VARCHAR2(255),
	     ATTRIB_35 VARCHAR2(255),
	     ATTRIB_36 VARCHAR2(255),
	     ATTRIB_37 VARCHAR2(255),
	     ATTRIB_38 VARCHAR2(255),
	     ATTRIB_39 VARCHAR2(255),
	     ATTRIB_40 VARCHAR2(255),
	     ATTRIB_41 VARCHAR2(255),
	     ATTRIB_42 VARCHAR2(255),
	     ATTRIB_43 VARCHAR2(255),
	     ATTRIB_44 VARCHAR2(255),
	     ATTRIB_45 VARCHAR2(255),
	     ATTRIB_46 VARCHAR2(255),
	     ATTRIB_47 VARCHAR2(255),
	     ATTRIB_48 VARCHAR2(255),
	     ATTRIB_49 VARCHAR2(255),
	     ATTRIB_50 VARCHAR2(255),
	     ATTRIB_51 VARCHAR2(255),
	     ATTRIB_52 VARCHAR2(255),
	     ATTRIB_53 VARCHAR2(255),
	     ATTRIB_54 VARCHAR2(255),
	     ATTRIB_55 CHAR(1),
	     ATTRIB_56 CHAR(1),
	     ATTRIB_57 CHAR(1),
	     ATTRIB_58 VARCHAR2(255),
	     ATTRIB_59 VARCHAR2(255),
	     ATTRIB_60 VARCHAR2(2000)
	    )
#end
#sql("oracle_middle_insert")
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_01','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_02','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_03','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_04','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_05','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_06','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_07','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_08','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_09','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_10','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_11','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_12','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_13','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_14','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_15','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_16','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_17','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_18','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_19','CLOB','富文本型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_20','VARCHAR2(2000)','文本型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_21','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_22','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_23','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_24','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_25','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_26','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_27','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_28','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_29','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_30','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_31','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_32','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_33','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_34','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_35','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_36','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_37','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_38','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_39','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_40','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_41','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_42','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_43','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_44','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_45','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_46','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_47','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_48','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_49','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_50','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_51','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_52','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_53','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_54','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_55','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_56','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_57','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_58','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_59','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_60','VARCHAR2(2000)','文本型','0')
#end
#sql("oracle_large_create")
      (
	     conflict_id VARCHAR2(50) primary key,
	     ROW_ID VARCHAR2(50),
	     PAR_ROW_ID VARCHAR2(50),
	     CREATED DATE default sysdate,
	     CREATED_BY VARCHAR2(50),
	     LAST_UPD DATE default sysdate,
	     LAST_UPD_BY VARCHAR2(50),
	     MODIFICATION_NUM NUMBER default 0,
 FORM_ID     	varchar(100) null,
 HASH_VAL     	varchar(100) null,
 AUDIT_STATE    varchar(100) null,
        AUDIT_DATE      datetime null,
        AUDIT_BY        varchar(100) null,
  AUDIT_BY_NAME        varchar(100) null,
LIFENODE_ID    varchar(100) null,
	     EIM_SOURCE VARCHAR2(100) default '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
	     ATTRIB_01 VARCHAR2(255),
	     ATTRIB_02 VARCHAR2(255),
	     ATTRIB_03 VARCHAR2(255),
	     ATTRIB_04 VARCHAR2(255),
	     ATTRIB_05 VARCHAR2(255),
	     ATTRIB_06 VARCHAR2(255),
	     ATTRIB_07 VARCHAR2(255),
	     ATTRIB_08 VARCHAR2(255),
	     ATTRIB_09 VARCHAR2(255),
	     ATTRIB_10 VARCHAR2(255),
	     ATTRIB_11 VARCHAR2(255),
	     ATTRIB_12 VARCHAR2(255),
	     ATTRIB_13 VARCHAR2(255),
	     ATTRIB_14 DATE,
	     ATTRIB_15 CHAR(1),
	     ATTRIB_16 CHAR(1),
	     ATTRIB_17 NUMBER,
	     ATTRIB_18 NUMBER,
	     ATTRIB_19 CLOB,
	     ATTRIB_20 VARCHAR2(2000),
	     ATTRIB_21 NUMBER,
	     ATTRIB_22 NUMBER,
	     ATTRIB_23 NUMBER,
	     ATTRIB_24 NUMBER,
	     ATTRIB_25 NUMBER,
	     ATTRIB_26 DATE,
	     ATTRIB_27 DATE,
	     ATTRIB_28 DATE,
	     ATTRIB_29 DATE,
	     ATTRIB_30 DATE,
	     ATTRIB_31 VARCHAR2(255),
	     ATTRIB_32 VARCHAR2(255),
	     ATTRIB_33 VARCHAR2(255),
	     ATTRIB_34 VARCHAR2(255),
	     ATTRIB_35 VARCHAR2(255),
	     ATTRIB_36 VARCHAR2(255),
	     ATTRIB_37 VARCHAR2(255),
	     ATTRIB_38 VARCHAR2(255),
	     ATTRIB_39 VARCHAR2(255),
	     ATTRIB_40 VARCHAR2(255),
	     ATTRIB_41 VARCHAR2(255),
	     ATTRIB_42 VARCHAR2(255),
	     ATTRIB_43 VARCHAR2(255),
	     ATTRIB_44 VARCHAR2(255),
	     ATTRIB_45 VARCHAR2(255),
	     ATTRIB_46 VARCHAR2(255),
	     ATTRIB_47 VARCHAR2(255),
	     ATTRIB_48 VARCHAR2(255),
	     ATTRIB_49 VARCHAR2(255),
	     ATTRIB_50 VARCHAR2(255),
	     ATTRIB_51 VARCHAR2(255),
	     ATTRIB_52 VARCHAR2(255),
	     ATTRIB_53 VARCHAR2(255),
	     ATTRIB_54 VARCHAR2(255),
	     ATTRIB_55 CHAR(1),
	     ATTRIB_56 CHAR(1),
	     ATTRIB_57 CHAR(1),
	     ATTRIB_58 VARCHAR2(255),
	     ATTRIB_59 VARCHAR2(255),
	     ATTRIB_60 VARCHAR2(2000),
	     ATTRIB_61 VARCHAR2(255),
	     ATTRIB_62 VARCHAR2(255),
	     ATTRIB_63 VARCHAR2(255),
	     ATTRIB_64 VARCHAR2(255),
	     ATTRIB_65 VARCHAR2(255),
	     ATTRIB_66 VARCHAR2(255),
	     ATTRIB_67 VARCHAR2(255),
	     ATTRIB_68 VARCHAR2(255),
	     ATTRIB_69 VARCHAR2(255),
	     ATTRIB_70 VARCHAR2(255),
	     ATTRIB_71 VARCHAR2(255),
	     ATTRIB_72 VARCHAR2(255),
	     ATTRIB_73 VARCHAR2(255),
	     ATTRIB_74 VARCHAR2(255),
	     ATTRIB_75 VARCHAR2(255),
	     ATTRIB_76 VARCHAR2(255),
	     ATTRIB_77 VARCHAR2(255),
	     ATTRIB_78 VARCHAR2(255),
		   ATTRIB_79 VARCHAR2(255),
	     ATTRIB_80 VARCHAR2(255),
	     ATTRIB_81 VARCHAR2(255),
	     ATTRIB_82 VARCHAR2(255),
	     ATTRIB_83 VARCHAR2(255),
	     ATTRIB_84 VARCHAR2(255),
	     ATTRIB_85 VARCHAR2(255),
	     ATTRIB_86 VARCHAR2(255),
	     ATTRIB_87 VARCHAR2(255),
	     ATTRIB_88 VARCHAR2(255),
	     ATTRIB_89 VARCHAR2(255),
	     ATTRIB_90 VARCHAR2(255),
	     ATTRIB_91 VARCHAR2(255),
	     ATTRIB_92 VARCHAR2(255),
	     ATTRIB_93 VARCHAR2(255),
	     ATTRIB_94 VARCHAR2(255),
	     ATTRIB_95 VARCHAR2(255),
	     ATTRIB_96 VARCHAR2(255),
	     ATTRIB_97 VARCHAR2(255),
	     ATTRIB_98 VARCHAR2(255),
	     ATTRIB_99 VARCHAR2(255),
	     ATTRIB_100 CLOB
	   )
#end
#sql("oracle_large_insert")
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_01','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_02','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_03','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_04','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_05','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_06','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_07','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_08','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_09','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_10','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_11','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_12','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_13','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_14','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_15','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_16','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_17','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_18','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_19','CLOB','富文本型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_20','VARCHAR2(2000)','文本型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_21','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_22','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_23','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_24','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_25','NUMBER','数值型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_26','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_27','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_28','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_29','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_30','DATE','日期型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_31','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_32','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_33','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_34','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_35','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_36','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_37','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_38','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_39','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_40','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_41','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_42','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_43','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_44','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_45','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_46','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_47','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_48','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_49','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_50','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_51','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_52','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_53','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_54','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_55','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_56','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_57','CHAR(1)','单字符型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_58','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_59','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_60','VARCHAR2(2000)','文本型','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_61','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_62','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_63','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_64','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_65','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_66','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_67','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_68','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_69','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_70','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_71','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_72','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_73','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_74','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_75','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_76','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_77','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_78','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_79','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_80','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_81','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_82','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_83','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_84','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_85','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_86','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_87','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_88','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_89','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_90','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_91','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_92','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_93','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_94','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_95','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_96','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_97','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_98','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_99','VARCHAR2(255)','普通字符串','0')//
     insert into TS_DATAMODEL_PROPERTIES(ID,MODEL_ID,MODEL_NAME,ATTRIB_NAME,ATTRIB_TYPE,ATTRIB_TYPE_DESC,ENCRY_FLG)values(SEQ_TS_DATAMODEL_PROPERTIES.nextval,'$1','$2','ATTRIB_100','CLOB','富文本型','0')
#end
#sql("oracle_sequence")
        INCREMENT BY 1 START WITH 100000000 NOMINVALUE NOCYCLE
#end

#sql("udmkey")
  select conflict_id,
          ATTRIB_01,
          ATTRIB_02,
          ATTRIB_20
     FROM TS_UDMKEY
          WHERE ATTRIB_01 = #para(partyName) ORDER BY conflict_id
#end

#sql("datamodel")
  SELECT ID
          ,MODEL_ID
          ,MODEL_NAME
          ,ATTRIB_NAME
          ,ATTRIB_DESCN
          ,ATTRIB_TYPE
          ,ATTRIB_TYPE_DESC
          ,CASE WHEN
          (state = 1 or ((attrib_descn is not null or attrib_descn != '') && state is null))
          THEN '锁定'
          ELSE (CASE WHEN
          (state = 0 or (state is null and (attrib_descn is null or attrib_descn = '')))
          THEN '激活' ELSE 'ERROR' END)
          END STATE_CN,HAND_FLG,
          REMARK
    FROM TS_DATAMODEL_PROPERTIES

    WHERE MODEL_ID = #para(modelId)

    #if(state)
      ### 发现有些字段已被使用中, 但state未NULL, 所以增加了以下这样的判断
      #if(state == '1')
      and (state = 1 or ((attrib_descn is not null or attrib_descn != '') && state is null))
      #else
      and (state = 0 or (state is null and (attrib_descn is null or attrib_descn = '')))
      #end
    #end

    #if(attrNum)
      and attrib_name like concat(concat('%', #para(attrNum)), '%')
    #end

    ORDER BY ID
#end

